
#ifndef EXAMPLE_OPENGL_VIEWPORT_H
#define EXAMPLE_OPENGL_VIEWPORT_H

#include <QtGui/QMainWindow>
#include "ui_example_opengl_viewport.h"
#include <sxQOpenGL_Viewport.h>
#include <sxOpenGL_Context.h>

using Sx::OpenGL::Graphics::Contexts::OpenGL_Context;

class Example_OpenGL_Viewport : public QMainWindow {
	Q_OBJECT

public:
	Example_OpenGL_Viewport(QWidget *parent = 0, Qt::WFlags flags = 0);
	~Example_OpenGL_Viewport();

	void resizeEvent(QResizeEvent* e);

private:
	Ui::Example_OpenGL_ViewportClass ui;

	std::shared_ptr<OpenGL_Context> openglContext;
	Sx::QtInterface::QOpenGL_Viewport* openglViewport;
};

#endif
